package com.qidian.md.mapper;

import com.qidian.mes.pojo.md.Vendor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VendorMapper {

    List<Vendor> selectByPage(@Param("vendor")Vendor vendor, @Param("start") Integer start, @Param("limit") Integer limit);

    Integer selectCount(Vendor vendor);


    int addVendor( Vendor vendor);

    /**
     * 根据输入的id查询供应商
     * @param vendorId
     * @return
     */
    Vendor selectById(Long vendorId);
    /**
     * 修改数据更新
     * @param vendor
     * @return
     */
    Integer update(Vendor vendor);

    Integer deleteUpdateStatus(Long vendorId);
}
